package com.jcj.jumper;

import com.jcj.gd2d.GameObject;

public class Life extends GameObject {
	
	public static final int LIFE_STATE_SET = 0;
	public static final int LIFE_STATE_POP = 1;
	public static final float LIFE_WIDTH = 0.8f;
	public static final float LIFE_HEIGHT = 0.8f;
	
	int state;
	float stateTime;
	
	public Life (float x, float y) {
		super(x,y,LIFE_WIDTH,LIFE_HEIGHT);
		state = LIFE_STATE_SET;
		stateTime = 0;
	}
	
	public void hit(){
		state = LIFE_STATE_POP;
		stateTime = 0;
	}

}
